<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Hastalık Sihirbazı</title>
        <link href="Tema.css" rel="stylesheet" type="text/css"></link>
    </h:head>
    <h:body>
        <h:form prependId="false">
            <div id="wrapper">
                <div id="logo">
                </div>
                <div id="header">
                </div>
                <div class="page">
                    <div id="page-bgtop">
                        <div id="dummy"></div>
                        <p:panel id="panelsidebar" header="Erişim Noktaları">
                            <ui:include src="SaglikKuruluMenu.xhtml"/>
                        </p:panel>
                        <div id="content">
                            <p:panel id="panel" header="Hastalık Sihirbazı">
                                <p:panel header="Hastalık Belirtileri">  
                                    <h:panelGrid columns="2" columnClasses="label, value" styleClass="grid">  
                                        <h:outputText value="Tanım: " />  
                                        <p:inputText label="Tanim" value="#{SaglikKuruluDenetci.secilenBelirti.tanim}"/> 
                                    </h:panelGrid>
                                    <h:panelGrid columns="1">
                                        <p:commandButton value="Ekle" onclick="eklemeIstegi.show()" />
                                    </h:panelGrid>
                                    <h:panelGrid>
                                        <p:messages/>
                                    </h:panelGrid> 
                                    <p:dataTable id="belirtilerTablosu" var="belirti" value="#{SaglikKuruluDenetci.belirtiModeli}" paginator="true" rows="10"  
                                                 selection="#{SaglikKuruluDenetci.secilenBelirtiler}">  
                                        <f:facet name="header">  
                                            Ekleyeceğiniz hastalığa ait belirtileri seçiniz.  
                                        </f:facet>
                                        <p:column selectionMode="multiple" style="width:18px" />
                                        <p:column headerText="Tanım">  
                                            #{belirti.tanim}  
                                        </p:column>  
                                    </p:dataTable>  
                                </p:panel>
                                <p:commandButton value="Devam" actionListener="#{SaglikKuruluDenetci.yeniHastaligaSoruEkle}"/>
                            </p:panel>
                            <p:confirmDialog message="Belirti eklensin mi?" showEffect="bounce" hideEffect="explode" header="Belirti Bilgileri" widgetVar="eklemeIstegi">  
                                <p:commandButton value="Evet" update="panel"  oncomplete="eklemeIstegi.hide()"  actionListener="#{SaglikKuruluDenetci.belirtiyiOlustur}" />  
                                <p:commandButton value="Hayır" onclick="eklemeIstegi.hide()" type="button" />                    
                            </p:confirmDialog>
                        </div>
                        <div style="clear: both;">&nbsp;</div>
                    </div>
                </div>
                <div id="footer-bgcontent">
                    <div id="footer" align="center">
                        <p>E-Doktor</p>
                    </div>
                </div>
            </div>
        </h:form>
    </h:body>
</html>

